package org.jeecg.modules.flower.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 大棚信息
 * @Author: jeecg-boot
 * @Date:   2021-08-25
 * @Version: V1.0
 */
@Data
@TableName("t_flower_planting_greenhouse")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="t_flower_planting_greenhouse对象", description="大棚信息")
public class FlowerPlantingGreenhouse implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createUser;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    private String updateUser;
	/**大棚名字*/
	@Excel(name = "大棚名字", width = 15)
    @ApiModelProperty(value = "大棚名字")
    private String name;
	/**大棚编号*/
	@Excel(name = "大棚编号", width = 15)
    @ApiModelProperty(value = "大棚编号")
    private Integer number;
	/**负责人*/
	@Excel(name = "负责人", width = 15)
    @ApiModelProperty(value = "负责人")
    private String manager;
	/**联系手机*/
	@Excel(name = "联系手机", width = 15)
    @ApiModelProperty(value = "联系手机")
    private String phone;
	/**大棚面积*/
	@Excel(name = "大棚面积", width = 15)
    @ApiModelProperty(value = "大棚面积")
    private Double aera;
	/**纬度*/
	@Excel(name = "纬度", width = 15)
    @ApiModelProperty(value = "纬度")
    private Double lat;
	/**经度*/
	@Excel(name = "经度", width = 15)
    @ApiModelProperty(value = "经度")
    private Double lng;
	/**海拔*/
	@Excel(name = "海拔", width = 15)
    @ApiModelProperty(value = "海拔")
    private Double altitude;
	/**基地ID*/
	@Excel(name = "基地ID", width = 15)
    @ApiModelProperty(value = "基地ID")
    private String parentId;
	/**种植分类(鲜切花，种苗)*/
	@Excel(name = "种植分类(鲜切花，种苗)", width = 15)
    @Dict(dicCode = "planting_classify")
    @ApiModelProperty(value = "种植分类(鲜切花，种苗)")
    private String classify;
	/**种植品种*/
	@Excel(name = "种植品种", width = 15)
    @Dict(dicCode = "planting_variety")
    @ApiModelProperty(value = "种植品种")
    private String variety;

    /**基地ID*/
    @Excel(name = "基地名字")
    @ApiModelProperty(value = "基地名字")
    @TableField(exist = false)
    private String baseName;
}
